package com.example.demo.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;


@Entity
@Table(name = "sys_menu")
public class SysMenu implements Serializable {

    @Id
    @Column(name = "pkid")
    private Integer pkId;

    @Column(name = "name")
    private String name;

    @Column(name = "content_describe")
    private String contentDescribe;

    @Column(name = "expend")
    private boolean expand;

    @Column(name = "sort_no")
    private Integer sortNo;

    @Column(name = "is_show")
    private  boolean isShow;

    @Column(name = "permission")
    private String permission; //菜单权限,比如：sys/general/admin

    @Column(name = "permission_text")
    private String permissionText; //菜单权限中文,比如：用户管理

    @Column(name = "path")
    private String path; //对应vue path,比如 sys/general/admin

    @Column(name = "component")
    private String component; //对应vue component,比如 pages/sys/general/admin

    public Integer getPkId() {
        return pkId;
    }

    public void setPkId(Integer pkId) {
        this.pkId = pkId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getContentDescribe() {
        return contentDescribe;
    }

    public void setContentDescribe(String contentDescribe) {
        this.contentDescribe = contentDescribe;
    }

    public boolean isExpand() {
        return expand;
    }

    public void setExpand(boolean expand) {
        this.expand = expand;
    }

    public Integer getSortNo() {
        return sortNo;
    }

    public void setSortNo(Integer sortNo) {
        this.sortNo = sortNo;
    }

    public boolean isShow() {
        return isShow;
    }

    public void setShow(boolean show) {
        isShow = show;
    }

    public String getPermission() {
        return permission;
    }

    public void setPermission(String permission) {
        this.permission = permission;
    }

    public String getPermissionText() {
        return permissionText;
    }

    public void setPermissionText(String permissionText) {
        this.permissionText = permissionText;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getComponent() {
        return component;
    }

    public void setComponent(String component) {
        this.component = component;
    }
}
